package cn.arnold.offer.shence.test3;

import java.util.Scanner;
import java.util.Stack;

/**
 * @Author Arnold
 * @Desc (1)23(4()5)6
 **/
public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String s = scanner.nextLine();
        Stack<Character> stack = new Stack<>();
        for (int i = 0; i < s.length(); i++) {
            char c = s.charAt(i);
            if ('('==c){
                if (stack.isEmpty()||stack.peek()!=')'){
                    break;
                }
            }
        }
    }
}
